package com.huike.web.controller.business;


import com.huike.business.service.ITbBusinessTrackRecordService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business/record")
public class TbBusinessTrackRecordController {

    @Autowired
    private ITbBusinessTrackRecordService iTbBusinessTrackRecordService;

    @GetMapping("/list")
    public AjaxResult getTbBusinessTrackRecordList(@RequestParam Long businessId){
        return AjaxResult.success(iTbBusinessTrackRecordService.getTbBusinessTrackRecordByBusinessId(businessId));

    }


}
